//
//  GoodsModel.swift
//  许鲜
//
//  Created by hbl on 16/4/24.
//  Copyright © 2016年 hbl. All rights reserved.
//

import UIKit

class GoodsModel: NSObject {
     /// 商品id
    var id:String?
     /// 商品详情2（网址）
    var details2:String?
     /// 商品图片
    var icon:String?
     /// 商品图片高清大图
    var newimg:String?
     /// 商品商店模型
    var sellacts:Dictionary<String,AnyObject>?{
        didSet{
           let temp = sellacts!["store"] as!Dictionary<String,AnyObject>
            self.goods_id = temp["goods_id"] as? String
           
        }
    }
     /// 折扣图标（网址）
    var tipsimg:String?
    /// 标题
    var title:String?
    /// 老用户价格
    var laouser:String?{
        didSet{
            laouser = "￥" + laouser!
        }
    }
     /// 标价
    var market_price:String?{
        didSet{
            market_price = "市场价：￥" + market_price!
        }
    }
    
    var goods_id:String?
    
    //规格
    var unit:String?{
        didSet{
            unit = "规格：" + unit!
        }
    }
    
    var sold_num:Int = 0
    var store_nums:Int = 0
    
    }
